﻿using System.Web.Services;
using fastJSON;
using ServiceStack.Text;

namespace RSuite.Services
{
    public class CommonService : WebService
    {
        public string ToJSON(object obj)
        {
            return JsonSerializer.SerializeToString(obj);
        }

        public dynamic FromJSON(string json)
        {
            return JSON.Instance.Parse(json);
        }
    }
}